
/* 全局样式 */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    background-color: #f5f5f5;
    color: #333;
}

/* 动态背景 (简化) */
.weather-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
}

/* 登录容器 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

/* 登录卡片 */
.auth-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* 动态头部 */
.dynamic-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}
/* 旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.dynamic-header .weather-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fdd835;
    animation: rotate 5s linear infinite; /* 应用旋转动画 */
    transition: transform 0.3s ease, color 0.3s ease; /* 添加过渡效果 */
}

.dynamic-header .weather-icon:hover {
     transform: scale(1.2); /* 悬停时放大 */
    color: #ff9800; /* 悬停时变为橙色 */
}

.gradient-text {
    margin: 0;
    font-size: 1.5rem;
    color: #55acee;
    line-height: 1.2;
}

/* 消息提示 */
.flash-container {
    min-height: 50px;
    margin-bottom: 20px;
}

.cosmic-alert {
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.cosmic-alert i {
    margin-right: 8px;
}

.alert-info {
    background-color: #e3f2fd;
    color: #2196f3;
}

.alert-success {
    background-color: #e8f5e9;
    color: #4caf50;
}

/* 表单 */
.neon-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 50px;
    text-align: left;
}

.floating-label input, .floating-label textarea {
    width: 100%;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    color: #333;
    font-size: 0.9rem;
    outline: none;
    transition: border-bottom-color 0.3s ease;
}

.floating-label label {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #999;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.floating-label label i {
    margin-right: 5px;
}

.floating-label input:focus, .floating-label textarea:focus {
    border-bottom-color: #55acee;
}

.floating-label input:focus + label,
.floating-label textarea:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: -18px;
    font-size: 0.75rem;
    color: #55acee;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 104%;
    background: #55acee;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.floating-label input:focus ~ .underline,
.floating-label textarea:focus ~ .underline {
    transform: scaleX(1);
}

.quantum-btn {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #55acee;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.quantum-btn:hover {
    background-color: #4ea1d3;
}

.quantum-btn:disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* 底部链接 */
.auth-footer {
    margin-top: 20px;
    color: #999;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.portal-link {
    color: #777;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.portal-link:hover {
    color: #55acee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-card {
        padding: 20px;
    }
}

